﻿<%@ Page Language="C#" MasterPageFile="~/cn/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="bannerPlaceHolder" Runat="Server">
    <object id="flash-show" type="application/x-shockwave-flash" data="../flash/index.swf" width="960px" height="273px">
	    <param name="movie" value="../flash/index.swf" />
	    <param name="wmode" value="transparent" />
	    <img src="*.jpg" alt="用于不支持flash或屏蔽flash时显示" />
    </object> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
     <div class="firstLine">
                    <table>
                        <tr>
                            <td  style="height: 210px;width:290px;vertical-align:top;">
                                <div style="height:210px;">
                                    <div style="height:40px;">
                                        <span style="display:block;margin-top:15px;">新闻</span>
                                        <span class="horizontal-line">
                                           &nbsp;
                                        </span>
                                    </div>
                                                   
                                    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
                                        <HeaderTemplate>
                                            <table style="font-size:12;font-family:宋体;font-weight:normal;">
                                        </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td>
                                                        <%#DataBinder.Eval(Container.DataItem,"newsContent_cn")+"["+DataBinder.Eval(Container.DataItem,"newsDate").ToString().Substring(0,DataBinder.Eval(Container.DataItem,"newsDate").ToString().IndexOf(" "))+"]" %>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                        SelectMethod="getAllNews" TypeName="DB"></asp:ObjectDataSource>
                                </div>
                            </td>
                            <td class="indexProductDiv" style="width: 586px">
                                <div class="spilterDiv">
                                    <ul style="padding:0;margin:0;list-style:none;height:40px;">
                                        <li id="recommendedSpan" class="recommendedSpan" onclick="show(this)">&nbsp;推荐产品</li>
                                        <li id="newSpan" class="newSpan" onclick="show(this)">&nbsp;最新产品</li>
                                    </ul>
                                </div>
                                <div class="indexScrollDiv" id="recommendedProductDiv">
                                    <table style="height:100%;width:100%;">
                                        <tr>
                                           <td colspan="2" style="border-top-color:white;border-top:width:3px;border-top-style:solid;">
                                               <div id="demo" style="overflow:hidden;width:560px;height:140px;padding:10px;">
                                                    <div id="demo1" style="background-color:white;">
                                                        <asp:Literal ID="Literal1" runat="server"></asp:Literal><asp:Literal ID="Literal2"
                                                            runat="server"></asp:Literal><asp:Literal ID="Literal3" runat="server"></asp:Literal><br />
                                                        <asp:Literal ID="Literal4" runat="server"></asp:Literal><asp:Literal ID="Literal5"
                                                            runat="server"></asp:Literal><asp:Literal ID="Literal6" runat="server"></asp:Literal>
                                                    </div>
                                                    <div id="demo2"></div>
                                                </div>
                                           </td> 
                                        </tr>
                                    </table>
                                </div>
                                <div class="indexScrollDiv" id="newProductDiv" style="display:none;">
                                    <table style="height:160px;width:580px;">
                                        <tr>
                                           <td colspan="2" >
                                            <div id="demo3" style="overflow:hidden;width:560px;height:140px;padding:10px;">
                                                <div id="demo4">
                                                    <asp:Literal ID="Literal7" runat="server"></asp:Literal><asp:Literal ID="Literal8"
                                                        runat="server"></asp:Literal><asp:Literal ID="Literal9" runat="server"></asp:Literal><br />
                                                    <asp:Literal ID="Literal10" runat="server"></asp:Literal><asp:Literal ID="Literal11"
                                                        runat="server"></asp:Literal><asp:Literal ID="Literal12" runat="server"></asp:Literal>
                                                </div>
                                                <div id="demo5"></div>
                                            </div>
                                           </td> 
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <script type="text/javascript">
                    try{
                        var speed=10; 
                        var demo = document.getElementById("demo");
                        var demo1 = document.getElementById("demo1");
                        var demo2 = document.getElementById("demo2");
                        demo2.innerHTML=demo1.innerHTML  
                        function Marquee(){  
                        if(demo2.offsetTop-demo.scrollTop<=0)  
                        demo.scrollTop-=demo1.offsetHeight  
                        else{  
                        demo.scrollTop++  
                        }  
                        }  
                        var MyMar=setInterval(Marquee,speed)  
                        demo.onmouseover=function() {clearInterval(MyMar)}  
                        demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                        }catch(ee){
                            alert("error");
                        }
                        
                    try{
                        var demo3 = document.getElementById("demo3");
                        var demo4 = document.getElementById("demo4");
                        var demo5 = document.getElementById("demo5");
                        demo5.innerHTML=demo4.innerHTML  
                        function Marquee_2(){  
                        if(demo5.offsetTop-demo3.scrollTop<=0)  
                        demo3.scrollTop-=demo4.offsetHeight  
                        else{  
                        demo3.scrollTop++  
                        }  
                        }  
                        var MyMar2=setInterval(Marquee_2,speed)  
                        demo3.onmouseover=function() {clearInterval(MyMar2)}  
                        demo3.onmouseout=function() {MyMar2=setInterval(Marquee_2,speed)}
                        }catch(ee){
                            alert("error");
                        }
                </script>              
                <div class="secondLine">
                    <table>
                    <tr>
                        <td style="width:290px;vertical-align:top;padding-top:5px;">
                            <div style="width:290px;">
                                <asp:Label ID="Label3" runat="server" Text="联系我们"></asp:Label>
                                <span class="horizontal-line">&nbsp;</span>
                            </div>
                            <asp:Label ID="addressLabel" runat="server" Text="地址:" 
                                CssClass="address"></asp:Label>
                            <asp:Label ID="phoneLabel" runat="server" Text="电话:" CssClass="address"></asp:Label>
                            <asp:Label ID="faxLabel" runat="server" Text="传真:" CssClass="address"></asp:Label>
                            <asp:Label ID="emailLabel" runat="server" Text="邮箱:" CssClass="address"></asp:Label>
                        </td>
                        <td style="height: 100%;vertical-align:top;width:100%;">
                            <table>
                                <tr>
                                    <td style="width:270px;vertical-align:top;padding-top:2px;">
                                        <asp:Label ID="Label2" runat="server" Text="链接"></asp:Label>
                                        <span class="horizontal-line">
                                        &nbsp;
                                        </span>
                                        <asp:Image ID="Image4" runat="server" ImageUrl="~/image/global.gif"/>
                                        <br /><br />
                                        <span>&nbsp;</span><br />
                                    </td>
                                    <td style="width:300px;padding-left:15px;vertical-align:top;">
                                        <div style="width:300px;vertical-align:top;">
                                            <asp:Label ID="Label1" runat="server" Text="质量认证" Width="210px"></asp:Label>
                                            <span style="display:inline;">
                                                <img src="../image/4.png" width="15px" height="15px" />
                                                <img src="../image/5.png" width="15px" height="15px" style="margin-left:2px;"/>
                                            </span>
                                            <div class="horizontal-line" >&nbsp;</div>
                                        </div>
                                             <asp:Image ID="Image8" runat="server" ImageUrl="~/image/rohs.jpg" Width="50px" Height="50px"/> 
                                        <br /><br /><span>&nbsp;</span><br />
                                        
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    </table>
                </div>
</asp:Content>

